package com.rui.state.obj;

import com.rui.state.model.Context;

/**
 * @Description: 运行状态
 * @Author: ZhangRui
 * @Date: 2023/3/3 15:31
 * @Version: 1.0
 */
public class RunState extends LiftState {
    @Override
    public void open() {
    }

    @Override
    public void close() {
    }

    @Override
    public void run() {
        System.out.println("电梯正在运行...");
    }

    @Override
    public void stop() {
        super.context.setLiftState(Context.STOP_STATE);
        super.context.stop();
    }
}
